B4X:
Private KEY_CTRL_PRESSED As Boolean = False
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Main") 'Load the layout file.
MainForm.Show
AddKeyPressedListener(MainForm)
End Sub
Sub AddKeyPressedListener(f As Form)...