!7 p { onGlobalKeyPress(voidfunc(NativeKeyEvent e) { print("Key press: " + e.getKeyCode(); if (e.getKeyCode() == KeyEvent.VK_F5) { final JTextField tf = jtextfield(); showFormTitled("Yup!", "Whaddayawant", tf, r { handle(getText(tf)) }); } }); } svoid handle(S s) { infoBox(s); }