Refactored duplicated code into setYear()
Added support for Page Up and Page Down keys in year <input>