Added keyboard functionality

Plugin should work completely now.