Added the visibility property & key down event