The development of a mechanism is presented which will behave as a portable keypad for device on an surface. The system consists of a pattern display and a 3D range camera for detecting the position of finger We analyze threshold information acquired with the 3D camera and detect the finger position using a reference frame which is already fed to the computer. The fingertips are detected by analyzing the hand’s colour defined and obtaining the threshold curve with different feature. We perform a detailed analysis of the feature of the threshold curve and determine the position using coordinate system to find which device was selected to be switched on. This part of processing is done by using algorithm and are done by the PC. The system can be used in any application requiring zero form factor and minimizes physical contact with a medium and improves maintenance.