Make the keypress and click stuff a bit cleaner.