added key handler