Implement key handler

Demo key handler