use the mouse to move the block and click to place it and use the key p to turn on paint mode, once the key p is released, paint mode turns off and use e to switch blocks