add key handler to input framework