Using Serial imput to run a code

yes, i am using an external pull-up resistor.