Implement Keyboard and Mouse input when using CALayer mode