small changes. added new keyboard functions