removed some whitespace
tried to wrap input_event in native and fixed an error in key_up