keyboard functions working, about to do major rewrite of opencv functions