event.shiftKey always return false on the keyboard.
Check instead of keyCode === 16 (this is a shift of key code, on the keyboard):
$(document).on('keydown', function(e) { if (e.shiftKey) { $('body').append('test1'); } }).on('keyup', function(e) { if (e.keyCode === 16) { $('body').append('test'); } });
Demo: http://jsfiddle.net/maniator/eyX5N/
source share