refactor input widgets and keyboard_shortcut screen flags