Added keyboard function which probably works