i copied your first code..
theres no variable 'radius' and
theres no 'Keyboard' class