basic input signal for handling keypress events