added the ispressed functionality for the find function
added global selection buffer, and set the buffer in chkSel