The aim of the study is to optimise the hand dexterity exercising program in virtual reality (VR) for patients with multiple sclerosis and Parkinson's disease. Little research has been published on this topic, but the preliminary results are promising. Different levels of difficulty of a VR game will be tested. The patients will be assessed using neuropsychological tests of executive functions, visuospatial abilities, mental speed, flexibility and motor speed. Functional ability, coordination and cognitive abilities will also be assessed.