Addded comments to understand keydown