refactor sustain behavior of the keyboard/keys