adding keyboard code on mac side