Switch to a signal-based system for registering for keypresses