No external keyboard required. In fact, everything you need is already there.
.
Method 1 (recommended):
- Open up the controls menu
- Go to other controls
- Find dev console and hit the button to bind it to a mouse button
- Do a 3 finger tap
- Whenever you want to open it, touch the screen with 3 fingers!
Method 2:
- Open up the controls menu
- Above other controls, tap the ... button
- Hit open dev console
Thanks