public bool KeyPressed(Keys key)
        {
            if (key == Keys.Enter)
            {
                return(true);
            }

            if (key == Keys.Back)
            {
                NavigateOneDirectoryUp();
            }

            if (key == Keys.F2 && NaviBox.SelectedItems.Count > 0)
            {
                NaviBox.SelectedItems[0].BeginEdit();
            }

            if (key == Keys.F3)
            {
                FileAndDirOperations.PackFile(NavigatorBoxControl.MakeFileInfoFromPath());
            }

            if (key == Keys.F4)
            {
                FileAndDirOperations.UnpackFile(NavigatorBoxControl.MakeFileInfoFromPath());
            }

            if (key == Keys.F5)
            {
                NavigatorBoxControl.ShowFileProperties(NavigatorBoxControl.SelectionPath);
            }

            if (key == Keys.Delete)
            {
                if (NavigatorBoxControl.IsItADirectory(NavigatorBoxControl.SelectionPath))
                {
                    FileAndDirOperations.DeleteDirectory(NavigatorBoxControl.SelectionPath);
                }
                FileAndDirOperations.DeleteFile(NavigatorBoxControl.SelectionPath);
            }

            if (key == Keys.Escape)
            {
                Application.Exit();
            }
            return(false);
        }
 private void propertiesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     NavigatorBoxControl.ShowFileProperties(NavigatorBoxControl.SelectionPath);
 }