Better global input handling