Fixes broken keyboard input, removes Plot commands that were inherited
from dialog parent.