java example should use Actions, not getKeyboard