Updated keyboard observer syntax