removed unneccessary key handler in input handler