Added rules for page up and page down keys