function to add new listeners

takes 3 inputs:
input_type: string of input type (ex 'keydown')
key_code: int of keyCode for desired control key
func_to_add: function to be executed on inpyt