First time creating a plugin and wondering if what im doing here is proper ( as far as event handling goes ). Do i need to do this differently or is this ok. Mainly just wondering about the keydown and keyup functions.
When you create a plugin you always need to return the current jQuery object for the element which allows for method chaining, also rather then using the keydown() and keyup() methods you should be using the on() method as it has event delegation built into it which allows for more dynamic event handlers in the DOM. See the below code which i updated to reflect this.